// lazyload config

angular.module('app').constant('GLOBAL_CONST', {
    //全局定义文件
    //配置菜单
    //0子菜单，1是菜单类别，2是文字说明，3是分割线
    menus: [{
        "type": 3
    }, {
        "text": "首页",
        "type": 1,
        "translate": "aside.nav.home",
        "icon": "glyphicon glyphicon-signal text-success",
        "route": "app.home"
    }, {
        "text": "订单管理",
        "translate": "aside.nav.orderManage",
        "type": "1",
        "icon": "glyphicon glyphicon-briefcase icon text-info-lter",
        "route": "app.orders"
    }, {
        "text": "商品管理",
        "translate": "aside.nav.goodsManage",
        "type": "1",
        "icon": "glyphicon glyphicon-gift icon text-info-dk",
        "route": "app.goods"
    }, {
        "text": "店铺管理",
        "translate": "aside.nav.shop.shopManage",
        "type": "1",
        "icon": "glyphicon glyphicon-list icon text-muted",
        "children": [{
            "text": "结算单",
            "translate": "aside.nav.shop.statement",
            "type": "0",
            "route": "app.shop.statement"
        }, {
            "text": "配送方式",
            "translate": "aside.nav.shop.distribution",
            "type": "0",
            "route": "app.shop.distribution"
        }, {
            "text": "基本信息",
            "translate": "aside.nav.shop.baseinfo",
            "type": "0",
            "route": "app.shop.baseinfo"
        }/*, {
            "text": "优惠活动",
            "translate": "aside.nav.shop.activity",
            "type": "0",
            "route": "app.page.profile"
        }*/, {
            "text": "意见反馈",
            "translate": "aside.nav.shop.feedback",
            "type": "4",
            "html": "<li ui-sref-active=\"active\">" +
                    "<a href='http://www.osovip.com/replay/index' target='_blank'>" +
                    "<span translate=\"aside.nav.shop.feedback\">意见反馈</span>" +
                    "</a></li>"
        }/*, {
            "type": "4",
            "html": "<li ui-sref-active=\"active\">" +
                    "<a ui-sref=\"app.shop.message\">" +
                    "<b class=\"badge bg-success pull-right\" ng-if=\"_unread_message\">{{_unread_message}}</b>" +
                    "<span translate=\"aside.nav.shop.message\">消息</span>" +
                    "</a></li>"
        }*/]
    }]
});